package com.ttx.pattern.example.chain.tomcat.filterchain;

import java.util.Enumeration;

/**
 *
 * 参考 javax.servlet.FilterConfig
 *
 * @author TimFruit
 * @date 19-5-11 下午6:08
 */
public interface FilterConfig {

    /**
     * Get the name of the filter.
     */
    public String getFilterName();

    /**
     * Returns a <code>String</code> containing the valve of the named
     * initialization parameter, or <code>null</code> if the parameter does not
     * exist.
     *
     * @param name
     *            <code>String</code> specifying the name of the initialization
     *            parameter
     *
     * @return <code>String</code> containing the valve of the initialization
     *         parameter
     */
    public String getInitParameter(String name);

    /**
     * Returns the names of the filter's initialization parameters as an
     * <code>Enumeration</code> of <code>String</code> objects, or an empty
     * <code>Enumeration</code> if the filter has no initialization parameters.
     *
     * @return <code>Enumeration</code> of <code>String</code> objects
     *         containing the names of the filter's initialization parameters
     */
    public Enumeration<String> getInitParameterNames();

}
